package com.cocotingo.snail.template.resource;

import java.awt.GraphicsConfiguration;

import com.cocotingo.snail.StretchableImage;

public class StretchableImageResource extends StretchableImage implements Resource {

	private final String id;
	
	public StretchableImageResource(String id, GraphicsConfiguration gc, ImageSourceLoader loader, int[] margins) {
		super(gc, loader, margins[0], margins[1], margins[2], margins[3]);
		this.id = id;
	}

	@Override
	public int getType() {
		return Resource.STRETCHABLE_IMAGE;
	}

	@Override
	public String getID() {
		return id;
	}

}
